<%-- 
    Document   : incluiGasto
    Created on : 19/10/2012, 23:07:50
    Author     : Jeisse
--%>

<%@page import="java.util.List"%>
<%@page import="model.TipoGasto"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="listaTipoGasto" scope="session"
             class="List<TipoGasto>" />

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Inclusão de Gasto</title>
        <%@ include file="includesHead.html" %>
    </head>
    <body>
        <%@ include file="colunaEsqueda.html" %>
        <div id="colunaDireita">
            <h1 class="tituloCentralizado">Controle Gastos Diários</h1>
            <h3>Inclusão de Gastos </h3>
            <form class="formularioCentroTela" action="./GastoServlet?operacao=FormularioIncluir" method="post">
                <h3>Informe os dados</h3>
                <table>
                    <tr>
                        <td>Tipo do gasto:</td>
                        <td>
                            <select size="1" name="tipoGasto">
                                <% for(TipoGasto t : listaTipoGasto) {%>
                                    <option value="<%= t.getId()%>"><%= t.getNome() %></option>
                                <% } %>
                            </select> 
                        </td>
                    </tr>
                    <tr>
                        <td>Data:</td>
                        <td><input id="datepicker" type="text" name="data" size="10" maxlength="80"></td>
                    </tr>
                    <tr>
                        <td><input type="submit" value="Enviar"></td>
                        <td><a href="index.jsp">Voltar</a></td>
                    </tr>
                </table>
            </form>

            <p><a href ="LogoutServlet">Logout</a></p>
        </div>
    </body>
</html>
